<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js</title>
    <link rel="stylesheet" href="style.css"/>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<h1> 初始化多个Vue实例对象 </h1>

<!--vue-app是根容器-->
<div id="vue-app-one">
    <h2>{{title}}</h2>
    <p>{{greet}}</p>
</div>

<div id="vue-app-two">
    <h2>{{title}}</h2>
    <p>{{greet}}</p>
    <button @click="changeTitle">Change App One Title</button>
</div>

<script src="app.js"></script>
</body>
</html>